<?php

namespace App\Http\Controllers;

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Routing\Controllers\HasMiddleware;
use Closure;

class UserController implements HasMiddleware
{
    public static function middleware(): array
    {
        return [
            'auth',
            function (Request $request, Closure $next) {
                return $next($request);
            },
        ];
    }

    public function show(string $id): User
    {
        dump($id);
        return User::findOrFail($id);
    }
}
